package engine.newUi
{
	import engine.control.loading.NxLoading;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.tab.NxTab;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;
	
	/**
	 * 帮派商人
	 * @author yangyuechao
	 */
	public class FamilyShopUI extends BaseUI
	{
		
		public var viewGroup	:NxViewGroup;
		public var mc1			:MovieClip;
		public var mc2			:MovieClip;
		public var mc3			:MovieClip;
		public var label1		:NxLabel;
		public var label2		:NxLabel;
		public var label3		:NxLabel;
		public var label4		:NxLabel;
		public var myLabel		:NxLabel;
		public var loading		:NxLoading;
		public var text		:NxText;
		public var nextGroup	:NxViewGroup;
		
		public var bg1			:MovieClip;
		public var bg2			:MovieClip;
		public var bg3			:MovieClip;
		public var upline		:MovieClip;
		public var upmc		:MovieClip;
		public var downline	:MovieClip;
		public var downmc		:MovieClip;
		
		private var _myLogic		:FamilyShopLogic;
		private static var _self	:FamilyShopUI;
		
		public function FamilyShopUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		public static function getInstance():FamilyShopUI
		{
			if(_self == null)
			{
				_self	=	new FamilyShopUI();
			}
			return _self;
		}
		
		override public function Init():void
		{
			_myLogic	=	FamilyShopLogic.getInstance();
			_myLogic.Init();
		}
		override protected function AfterHide():void
		{
			_myLogic.AfterHide();
		}
		override protected function BeforeShow():void
		{
			_myLogic.BeforeShow();
		}
	}
}